package com.ruoyi.modules.mapper;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.ruoyi.modules.bean.TZjxdRwb;
import org.apache.ibatis.annotations.Param;

import com.ruoyi.modules.bean.TOption;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author zzw
* @description 针对表【t_option】的数据库操作Mapper
* @createDate 2024-05-31 19:39:37
* @Entity com.ruoyi.modules.bean.TOption
*/
public interface TOptionMapper extends BaseMapper<TOption> {
    List<Long> selectDeptIdByRwbId(@Param("rwbId") String rwbId);

    List<TOption> getAllByDeptIdAndRwbId(@Param("deptId") Long deptId, @Param("rwbId") String rwbId, @Param("list")List<Long> roleIds);
    List<TOption> getOption(@Param("userId") Long userId, @Param("rwbId") String rwbId);

    List<TOption> getDeptIdAndDeptNameByRwbId(@Param("rwbId") String rwbId);

    List<TOption> getDeptIdAndDeptNameByRwbIdAndCreateDept(@Param("rwbId") String rwbId, @Param("createDept") Long createDept);

    int deleteByRwbIdIn(@Param("rwbIdList") Collection<String> rwbIdList);

    List<Map> getParentOptions(@Param("optionId") String optionId);
   List<Map> getChildOptions(Map<String, String> params);
    List<Map> getOptions(@Param("rwbId")String rwbId,@Param("deptId")Long deptId);

    List<TOption> getAllByRwbIdAndCreateDept(@Param("rwbId") String rwbId, @Param("createDept") Long createDept);

    List<TOption> getAllByParentId(@Param("parentId") String parentId);
}




